
case class Schema (num :Int, name :String)

object StringTest {

  def main(args: Array[String]): Unit = {

    val num = 10

    val str : String = "String type"

    val L = 10L

    val schema = Schema(10 , "xiaohui")
    println(num.getClass.getName)
    println(str.getClass.getName)
    println(L.getClass.getName)
    println(schema.getClass.getName)

    if(schema.isInstanceOf[Schema]){
      println("it is Schema's Object")
    }else{
      println("it isnot Schema's Object")
    }
  }

}
